<?php echo '<?xml version="1.0" encoding="UTF-8"?>'?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
	<title><?php echo $tpl_title?></title>
	<link><?php echo  HOST_NAME?></link>
	<description><?php echo $tpl_desc?></description>
	<pubDate><?php echo date('D, d M Y h:i:s O'); ?></pubDate>
	<generator>ABlog CMS Generator</generator>
<?php foreach ($tpl_posts as $o_val):?>
		<item>
		<title><?php echo $o_val->title;?></title>
		<link><?php echo URL_POST.ABapi::encodeURL($o_val->title)?></link>
		<pubDate><?php echo date('D, d M Y h:i:s', $o_val->unixt);?></pubDate>
		<content:encoded><![CDATA[ <?php echo  strip_tags($o_val->content)?>... 
		<p><a href="<?php echo URL_POST.ABapi::encodeURL($o_val->title)?>">Leer contenido completo</a></p>]]>
		</content:encoded>
		</item>
<?php	endforeach;?>
</channel>
</rss>
